/*
 *英才会硕信息科技有限公司拥有本软件的版权，拥有本软件版权2025   并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technology Co.,Ltd,
 *All rights reserved.
 */
package com.ychs.lawyerback01.mapper;

import com.ychs.lawyerback01.pojo.PrivilegeEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xuehongjin
 * @version 1.0
 * @date 2025/8/22
 */
@Mapper
public interface PrivilegeMapper {
    // 根据角色ID查询权限
    List<Long> getMenuIdsByRoleId(Long roleId);

    // 删除角色原有权限
    int deleteByRoleId(Long roleId);

    // 批量添加角色权限
    int batchInsert(List<PrivilegeEntity> privileges);
}
